* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
    padding: 20px;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

h1 {
    text-align: center;
    margin-bottom: 30px;
    color: #2c3e50;
}

.control-panel {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.control-panel label {
    font-weight: bold;
    color: #495057;
}

.control-panel input[type="range"] {
    width: 100%;
    height: 8px;
    -webkit-appearance: none;
    /* 去除表单默认样式 */
    background: #dee2e6;
    border-radius: 4px;
    outline: none;
}

.control-panel input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: #4dabf7;
    border-radius: 50%;
    cursor: pointer;
}

.animation-container {
    width: 100%;
    height: 300px;
    background: #e9ecef;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.animated-box {
    width: 80px;
    height: 80px;
    background: #4dabf7;
    border-radius: 8px;
    position: absolute;
    bottom: 10px;
    left: 10px;
    transition-property: left, background-color, transform;
    transition-timing-function: ease-in-out;
    will-change: left, background-color, transform;
}